<?php
require('includes/top.php');

$design_id = $_POST['designation_id'];
$designation = $_POST['designation'];
$des = $_POST['description'];

$sql = "UPDATE designation SET `designation_name` = '".$designation."', `description` = '".$des."' where designation_id='".trim($design_id)."'";
$result=mysql_query($sql);


if($result>0)
{
header('Location: designation_details.php?v=success');
}
else
{
header('Location: designation_details.php?v=err');
}
?>